from django.conf.urls.defaults import patterns, include, url
from django.conf import settings
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.conf.urls.static import static

from registration.views import register

from brispon.forms import SiteUserForm
import brispon.signals

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^admin/', include(admin.site.urls)),
    url(r'^accounts/register/$', register, {'backend': 'registration.backends.default.DefaultBackend',
                                            'form_class':SiteUserForm},
                                            name='registration_register'),
    url(r'^accounts/', include('registration.backends.default.urls')),
    url(r'', include('brispon.urls')),
) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

urlpatterns += staticfiles_urlpatterns()